Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix PhOpenDriver regression from 95bc2fe #2322

Closed
wants to merge 1 commit into from

Conversation

DartVanya
Copy link
Contributor

@DartVanya DartVanya commented Dec 5, 2024

Directory and Driver objects cannot be opened with OBJ_EXCLUSIVE, system calls returns STATUS_INVALID_PARAMETER even currently is zero opened handles for this object. This breaks both PhOpenDriver and PhOpenDriverByBaseAddress.
95bc2fe#diff-7b1df2858b7dc31ac554743937d5e518d03d6957113a83969968d4b1626096c1R5621

@DartVanya DartVanya changed the title fix PhOpenDriver regression from 95bc2fe8c1a077aeb2103c076e3991683294… fix PhOpenDriver regression from 95bc2fe Dec 5, 2024
@dmex
Copy link
Member

dmex commented Dec 5, 2024

I'll partial revert the commit and merge with some other changes 👍

@DartVanya
Copy link
Contributor Author

DartVanya commented Dec 6, 2024

I'll partial revert the commit and merge with some other changes 👍

Ok, thanks. And I think there is a missing line, because now SI crashes if warnings are enabled and you try to start a service (context->Object null pointer dereference).
https://github.com/winsiderss/systeminformer/blob/master/SystemInformer/actions.c#L3954

context->Object = NumberOfServices == 1 ? L"the selected service" : L"the selected services";

@dmex dmex closed this Dec 6, 2024
@DartVanya DartVanya deleted the master-temp branch December 9, 2024 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants